//---------------------------------------------------------------------------

#ifndef NATH_POVH
#define NATH_POVH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <DBCtrls.hpp>
#include <Mask.hpp>
#include <ActnList.hpp>
#include <DB.hpp>
#include "cxCalendar.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxDropDownEdit.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
#include "cxButtons.hpp"
#include <Menus.hpp>
#include "DBAccess.hpp"
#include "IBC.hpp"
#include "MemDS.hpp"
//---------------------------------------------------------------------------
class TfrNATH_POV : public TForm
{
__published:	// IDE-managed Components
	TPanel *pEdit;
	TPanel *pUPR;
	TActionList *ActionList1;
	TAction *ESC;
	TcxGroupBox *gbEdit;
	TLabel *Label1;
	TcxDateEdit *dtpDAT_NATH;
	TLabel *Label10;
	TEdit *edPOK_PRI_SNIAT;
	TLabel *Label15;
	TEdit *edRAZN;
	TLabel *Label16;
	TEdit *edMES;
	TEdit *edGOD;
	TLabel *Label17;
	TcxGroupBox *gbPOK;
	TLabel *labPOK1;
	TLabel *labPOK2;
	TEdit *edRASH1;
	TEdit *edRASH2;
	TPanel *pTable;
	TLabel *Label12;
	TLabel *Label2;
	TDBText *labFIO;
	TLabel *Label3;
	TDBText *labADRES;
	TLabel *Label4;
	TDBText *labNOM_DOG;
	TLabel *Label5;
	TDBText *labKOL_JIL;
	TDBText *labLG_JIL;
	TDBText *labTARIF;
	TLabel *Label11;
	TLabel *Label19;
	TDBText *labPLIT;
	TLabel *Label20;
	TDBText *labKOL_KOTL;
	TLabel *Label21;
	TDBText *labKOL_BPG;
	TLabel *Label7;
	TDBText *labDAT_P_OPL;
	TLabel *Label9;
	TDBText *labDOLG;
	TDBText *labPOK_BANKA;
	TLabel *Label8;
	TLabel *Label6;
	TLabel *Label14;
	TDBText *labKON_POK;
	TDBEdit *dbeNOM;
	TcxGroupBox *gbSP_OBMEN;
	TLabel *Label13;
	TLabel *Label18;
	TDBLookupComboBox *cbMARKA;
	TDBLookupComboBox *cbMODEL;
	TLabel *Label22;
	TEdit *edZAV_NOM;
	TLabel *Label23;
	TEdit *edPOK_SCH_OBM;
	TcxButton *btSAVE;
	TcxButton *btCANCEL;
	TAction *SAVE;
	TcxGroupBox *gbSUM_DOBOR;
	TEdit *edSUM_PERESH;
	TIBCQuery *dsetPOK_SCH_OBM;
	TIBCDataSource *dsPOK_SCH_OBM;
	void __fastcall ESCExecute(TObject *Sender);
	void __fastcall FormShow(TObject *Sender);
	void __fastcall dtpDAT_NATHKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edPOK_PRI_SNIATKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edMESKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edGODKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edRASH1KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall edRASH2KeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
	void __fastcall cbMARKAClick(TObject *Sender);
	void __fastcall cbMODELClick(TObject *Sender);
	void __fastcall edZAV_NOMKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall edPOK_SCH_OBMKeyDown(TObject *Sender, WORD &Key,
          TShiftState Shift);
	void __fastcall SAVEExecute(TObject *Sender);
private:	// User declarations
public:		// User declarations
int NOM,ZIMA,KOD_SCH,KOL_SCH_OBM,KOD_SCH_OBM,KOL_SCH_OBM_ISP;
String MES_NATH,MES_KON,MARKA,MODEL;
	__fastcall TfrNATH_POV(TComponent* Owner);
	void __fastcall TfrNATH_POV::MARKA_MODEL();
	void __fastcall TfrNATH_POV::ZAP_POVERKA();
	void __fastcall TfrNATH_POV::PERESH_DOBOR(int V1, int V2);
    void __fastcall TfrNATH_POV::Clear();
	};
//---------------------------------------------------------------------------
extern PACKAGE TfrNATH_POV *frNATH_POV;
//---------------------------------------------------------------------------
#endif
